package com.locust.junit.druid;

import com.alibaba.druid.filter.config.ConfigTools;


public class GeneratorDruidPassword {

	public static void main(String[] args) throws Exception {
		String password = "locust" ;
		
		String[] arr = ConfigTools.genKeyPair(512) ;
		System.out.println("default.druid.privateKey=" + arr[0]);
        System.out.println("default.druid.publicKey=" + arr[1]);
        System.out.println("default.jdbc.password=" + ConfigTools.encrypt(arr[0], password));
		
		
	}
	
}
